<template>
  <view class="leave">
		<back :back-title="backTitle"></back>
		<search></search>
		<view class="leave-aduit" @click.stop="handleAudit">
			<image src="/static/images/leave/leave.png"></image>
		</view>
		<list></list>
	</view>
</template>

<script>
import list from './components/list'
export default {
	name: 'leave',
	data() {
		return {
			backTitle: '请假·销假',
			list: [
				{
					date: '2019-08-01',
					type: '事假',
					reject: '没有请假条没有请假条没有请假条没有请假条没有请假条',
					status: '审核中',
					reason: '病'
				},
				{
					date: '2019-08-01',
					type: '事假',
					reject: '没有请假条没有请假条没有请假条没有请假条没有请假条',
					status: '审核中',
					reason: '事'
				}
			]
		}
	},
	components:{
		list
	},
	methods: {
		handleAudit() {
			uni.navigateTo({
			  url: '/pages/leave/children/audit/index'
			})
		}
	}
}

</script>
<style lang='scss' scoped>
	.leave{
		width: 100%;
		min-height: 100vh;
		position: relative;
		.leave-aduit{
			position: absolute;
			top:56upx;
			right:20upx;
			image{
				width: 135upx;
				height: 60upx;
			}
		}
	}
</style>